package com.cdut.logistics.service.impl.system;

import com.cdut.logistics.model.entity.system.User;
import com.cdut.logistics.model.dao.system.userDAO;
import com.cdut.logistics.service.interf.system.UserService;
/**
 * 
 * @ClassName: UserServiceImp  
 * @Description: TODO(UserService接口类的实现类)  
 * @author lxh
 * @date 2018年1月28日 下午2:38:04
 */
public class UserServiceImp implements UserService {
	userDAO dao=new  userDAO();

	public boolean DeleteUser(String id) {
		boolean result=dao.DeleteUser(id);
		return result;
	}
	public User QueryUserInfo(String id) {
		User result =dao.queryUserInfo(id);
		return result;
	}
	public boolean UpdateUser(String username,String password,String identity, String student_id, String school_id, String academy_id,
			String dorm_id, String major_id, String sex, String role_id,String rep_id,String id) {
		boolean result=dao.UpdateUserInfo(username,password,identity,student_id,school_id,academy_id,
				dorm_id,major_id,sex,role_id,rep_id,id);
		return result;
	}

	public boolean add(String username,String password,String identity, String student_id, String school_id, String academy_id,
			String dorm_id, String major_id, String sex, String role_id,String rep_id,String is_use,String active) {
		boolean result=dao.AddUser(username,password,identity,student_id,school_id,academy_id,
				dorm_id,major_id,sex,role_id,rep_id,is_use,active);
		return result;
	}

}
